package com.biz.primus.model.promotion.vo;

import com.biz.primus.model.promotion.enums.LuckyOrderTypeEnum;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 下单有礼规则Vo
 *
 * @author david-liu
 */
@Getter
@Setter
public class LuckyOrderPromotionRuleVo implements Serializable {
    private static final long serialVersionUID = 2523529042943854417L;

    /**
     * 下单有礼中奖类型(按照设置中奖时间段设置中奖数/设置
     */
    private LuckyOrderTypeEnum luckyOrderType;

    /**
     * 下单有礼时间段开始时间
     */
    private LocalDateTime luckyOrderStartTime;

    /**
     * 下单有礼时间段结束时间
     */
    private LocalDateTime luckyOrderEndTime;

    /**
     * 中奖订单数(当日第xx单中奖)
     */
    private List<Integer> luckyOrderSequence;

    /**
     * 下单时间段内中奖数限制
     */
    private Integer lucyOrderTimeSectionLuckyQuantity;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
